//
//  UIView+IBExtension.swift
//  MySinaWeibo
//
//  Created by eastriver on 16/10/2.
//  Copyright © 2016年 believewilliam. All rights reserved.
//

import UIKit
extension UIView {
    @IBInspectable var cornerRadius: CGFloat {
        set {
            self.layer.cornerRadius = newValue
            self.layer.masksToBounds = newValue > 0
        }
        get {
            return self.layer.cornerRadius
        }
    }
}
